import * as typegoose from '@midwayjs/typegoose';
import { DB_NAME } from '../constants';

export const mongoose: typegoose.DefaultConfig = {
  uri: 'mongodb://127.0.0.1:27017',
  options: {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    dbName: DB_NAME
  },
};

export const redis = {
  host: '127.0.0.1',
  port: 6379,
  options: {
    password: '',
    db: 1
  }
};


